import { request } from '../index'
export const getCode = (params)=>{
    return request({
        url:'/auth/code',
        data:params
    })
}
export const smsLogin = (params)=>{
    return request({
        url:'/auth/sms_login',
        data:params
    })
}
export const refreshToken = ()=>{
    return request({
        url:'/auth/refresh_token'
    })
}

export const logout = ()=>{
    return request({
        url:'/auth/logout'
    })
}
export const logoff = ()=>{
    return request({
        url:'/user/account_logout'
    })
}